import request, {Method} from "@/utils/request";

export function getLoginCode (data) {
    return request({
        url: `/barrage/dyLogin`,
        method: Method.GET,
        needToken: true,
        headers: {'Content-Type': 'application/x-www-form-urlencoded'},
    });
}

export function dyLoginStatus (data) {
    return request({
        url: `/barrage/dyLoginStatus`,
        method: Method.POST,
        needToken: true,
        headers: {'Content-Type': 'application/json'},
        data
    });
}


export function dyCookies (data) {
    return request({
        url: `/barrage/dyCookies`,
        method: Method.POST,
        needToken: true,
        headers: {'Content-Type': 'application/json'},
        data
    });
}


